﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetOutCheck.aspx.cs" Inherits="BySoft.Web.Site.ComPage.SetOutCheck" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ MasterType VirtualPath="~/MastePage/SubEmptyMaster.Master" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Src="../UserControl/SuggestTextBox2.ascx" TagName="SuggestTextBox2"
    TagPrefix="uc1" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <script language="javascript" type="text/javascript">
       
    </script>
    <div class="searchTable">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <th width="20%">收料数量：
                        </th>
                        <td width="30%">
                            <asp:HiddenField ID="hidDetailID" runat="server" />
                            <asp:Label ID="lblReceiveNum" runat="server"></asp:Label>
                        </td>
                        <th width="20%">检验结果：
                        </th>
                        <td width="30%">
                            <asp:DropDownList ID="ddlResultType" runat="server" CssClass="text ui-widget-content ui-corner-all ddlwidth"
                                OnSelectedIndexChanged="ddlResultType_Changed" AutoPostBack="true">
                                <asp:ListItem Text="请选择..." Value=""></asp:ListItem>
                                <asp:ListItem Text="合格" Value="1" Selected="True"></asp:ListItem>
                               <%-- <asp:ListItem Text="让步" Value="3"></asp:ListItem>--%>
                                <asp:ListItem Text="不合格" Value="5"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%"></th>
                        <td width="30%">
                           </td>
                        <th width="20%">合格数量：
                        </th>
                        <td width="30%">
                            <asp:Label ID="lblQualifiedNum" runat="server"></asp:Label>
                        </td>

                    </tr>
                  
                    <asp:Panel ID="plUnQualifiedNum" runat="server">
                        <tr>
                            <th width="20%">不合格数量：
                            </th>
                            <td width="30%">
                                <asp:TextBox ID="txtUnQualifiedNum" runat="server" CssClass="text ui-widget-content ui-corner-all"
                                    ></asp:TextBox>

                                   <asp:RegularExpressionValidator ControlToValidate="txtUnQualifiedNum" Display="None" ErrorMessage="不合格数量，请填写数字" ID="revOutSide"
                                ValidationExpression="\d{0,9}(\.\d{0,2})?" ValidationGroup="gSubmit" runat="server"></asp:RegularExpressionValidator>
                            </td>
                            <th width="20%">不合格原因:</th>
                            <td width="30%">
                                <asp:TextBox ID="txtUnqualifiedReason" runat="server" MaxLength="50" CssClass="text ui-widget-content ui-corner-all"
                                    Width="88%" Height="50px" TextMode="MultiLine"></asp:TextBox></td>
                        </tr>
                    </asp:Panel>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="controlBar" align="center">
        <div>
            <table cellpadding="0" cellspacing="0" style="width: 140px; margin: 0 auto;">
                <tr>
                    <td>
                        <label class="btnStylec png_bg" id="lblbtnStylec" runat="server">
                            <asp:Button ID="btnOk" runat="server" Text="确认" CssClass="but" OnClick="btnOk_Click"
                                ValidationGroup="gSubmit" /></label><label class="btnStyleb png_bg"><asp:Button ID="btnBack"
                                    runat="server" Text="取消" CssClass="but" OnClick="btnBack_Click" ValidationGroup="gSubmit" /></label>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
